7 bool esPrimo(const int &n
){
11 int raiz
= (int)ceil(sqrt(n
)) + 1;
12 for (int i
=3; i
<raiz
; i
+= 2)
33 cout
<< n
<< " is not prime.\n";
35 int inverso
= voltear(n
);
36 if (inverso
!= n
&& esPrimo(inverso
))
37 cout
<< n
<< " is emirp.\n";
40 cout
<< n
<< " is prime.\n";